package br.com.usp.shared;

 

import java.util.ArrayList;

import com.google.gwt.user.client.rpc.IsSerializable;

public class SubProcess extends FlowObjectsProcessDTO implements IsSerializable{

	private  ArrayList<FlowObjectsProcessDTO>  listaFluxo;
	private  ArrayList<ConnectoresProcessDTO>  listaConnector;
	private  ArrayList<ConnectoresProcessDTO>  listaConnectorBMMtoProcess;
	private  ArrayList<ConnectoresProcessDTO>  listaConnectorBMMDept;
	
	private static final long serialVersionUID = 1L;

	public SubProcess()
	{
        listaFluxo = new ArrayList<FlowObjectsProcessDTO>();
        listaConnector = new ArrayList<ConnectoresProcessDTO>();
        listaConnectorBMMtoProcess = new ArrayList<ConnectoresProcessDTO>();
        listaConnectorBMMDept = new ArrayList<ConnectoresProcessDTO>();
        setTipo("SubProcess");
	}
	
	public SubProcess(BMMDTO bmm)
    {
		    this();
	    	setId(bmm.getId());
	    	setDescricao(bmm.getDescricao());
	    	setName(bmm.getDescricao());
	    	setRepresentacao(bmm.getRepresentacao());
	    	setLeft(bmm.getLeft());
	    	setTop(bmm.getTop());
	    	setTipo(bmm.getTipo());
	}

	public ArrayList<FlowObjectsProcessDTO> getListaFluxo() {
		return listaFluxo;
	}

	public void setListaFluxo(ArrayList<FlowObjectsProcessDTO> listaFluxo) {
		this.listaFluxo = listaFluxo;
	}

	public ArrayList<ConnectoresProcessDTO> getListaConnector() {
		return listaConnector;
	}

	public void setListaConnector(ArrayList<ConnectoresProcessDTO> listaConnector) {
		this.listaConnector = listaConnector;
	}
	
	public ArrayList<ConnectoresProcessDTO> getListaConnectorBMMtoProcess() {
		return listaConnectorBMMtoProcess;
	}

	public void setListaConnectorBMMtoProcess(
			ArrayList<ConnectoresProcessDTO> listaConnectorBMMtoProcess) {
		this.listaConnectorBMMtoProcess = listaConnectorBMMtoProcess;
	}
	

	public ArrayList<ConnectoresProcessDTO> getListaConnectorBMMDept() {
		return listaConnectorBMMDept;
	}

	public void setListaConnectorBMMDept(
			ArrayList<ConnectoresProcessDTO> listaConnectorBMMDept) {
		this.listaConnectorBMMDept = listaConnectorBMMDept;
	}

	public String getTipo() {
		return "SubProcess";
	}
	
	
	
}
